import Vue from 'vue'
import App from './App'
import router from './router'
import Antd from 'ant-design-vue'
import richEditor from 'nearby-components/lib/richEditor'
import '@/assets/style/global.scss'
import '@/assets/style/theme.scss'
import '@/assets/style/antd.less'
import '@/scss/common.scss'
import '@/filter'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import { mainMixin } from '@/config/mixin'
import plugin from '@/config/plugin/index'
import myPlugin from '@/config/plugin/function'
import nc from '@/config/plugin/notification'
import viewerPlugin from '../../config/v-viewer' // 图片预览
import bus from './eventBus'
import * as echarts from 'echarts'
import TDesign from 'tdesign-vue'
// 引入组件库全局样式资源
import 'tdesign-vue/es/style/index.css'

Vue.use(TDesign)
Vue.prototype.$echarts = echarts

Vue.prototype.$bus = bus
Vue.config.productionTip = false
Vue.use(Viewer)
Vue.use(Antd)
Vue.use(plugin)
Vue.use(myPlugin)
Vue.use(nc)
Vue.use(richEditor)
Vue.mixin(mainMixin)
Vue.use(viewerPlugin, { debug: process.env.NODE_ENV !== 'production' })
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: (h) => h(App)
})
